from django.conf.urls import patterns, include, url
from web import views,userviews,logviews,monitorviews,imageviews
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.contrib.auth.views import login
admin.autodiscover()

urlpatterns = patterns('',
    url(r'login/$',userviews.login_view),
    url(r'logout/$',userviews.logout_view),
    url(r'^user/chpasswd/',userviews.chpasswd),
    url(r'^user/register/',userviews.register),
    url(r'^$',views.home),
    url(r'^time/',views.nowtime),
    url(r'^logs/$',logviews.showlog),
    url(r'^logs/monitor/',logviews.monitorlog),
    url(r'^logs/mail/',logviews.maillog),
    url(r'^monitor/$',monitorviews.monitorlist),
    url(r'^monitor/images/image/',imageviews.image),
    url(r'^monitor/images/monitor/',imageviews.monitor),
    url(r'^monitor/images/host/',imageviews.host),
    url(r'^monitor/status/$',monitorviews.monitorstatus),
    url(r'^monitor/conf/(.+)/$',monitorviews.monitorconf),
    url(r'^client/monitor/(.+)/$',monitorviews.clientmonitor),
    url(r'^client/conf/(.+)/$',views.clientconf),
    url(r'^project/(.+)/$',views.projectconf),
    url(r'^client/$',views.clientlist),
    url(r'^project/$',views.projectlist),
    # Examples:
    # url(r'^$', 'web.views.home', name='home'),
    # url(r'^web/', include('web.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    #url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    #url(r'^admin/', include(admin.site.urls)),
)
